package com.byd.sealmanage.dao.mybatis;

import com.byd.sealmanage.config.CommonMapper;
import com.byd.sealmanage.modal.bo.LayuiMenu;
import com.byd.sealmanage.modal.po.TbMenu;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Set;

@Repository
public interface TbMenuMapper extends CommonMapper<TbMenu> {

    /**
     * 查找对应的菜单
     * @param roleId
     * @param type
     * @return
     */
    Set<LayuiMenu> getPermitByRoleId(@Param("roleId") String roleId, @Param("type") String type);
}